import request from '@/utils/request'

// 查询风险检查表列表
export function listDealRisk(query) {
  return request({
    url: '/dealRisk/dealRisk/list',
    method: 'get',
    params: query
  })
}

// 查询风险检查表详细
export function getDealRisk(id) {
  return request({
    url: '/dealRisk/dealRisk/' + id,
    method: 'get'
  })
}

// 保存风险检查表
export function saveDealRisk(data) {
  return request({
    url: '/dealRisk/dealRisk/save',
    method: 'post',
    data: data
  })
}

// 删除风险检查表
export function delDealRisk(id) {
  return request({
    url: '/dealRisk/dealRisk/' + id,
    method: 'delete'
  })
}

// 导出风险检查表
export function exportDealRisk(query) {
  return request({
    url: '/dealRisk/dealRisk/export',
    method: 'get',
    params: query
  })
}
